﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/OneColumn.Master" AutoEventWireup="true"
    CodeBehind="MyProfile.aspx.cs" Inherits="SharingCenter.Web.Mod.Learning.MyProfile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    我的互助活动
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<myuc:GenericTabs ID="LinkListTabs1" SelectedItem="1" runat="server" Section="Learning" />
    <h2 class="bb">
        我的互助活动</h2>
    <div class="ctn-p-b">
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="CreateProfile.aspx" CssClass="addbutton">新建互助活动</asp:HyperLink>
    </div>
    <div>
        <asp:ListView ID="ListView1" runat="server" DataSourceID="LinqDataSource1" DataKeyNames="LearningProfileId">
            <LayoutTemplate>
                <div id="itemPlaceholder" runat="server" />
            </LayoutTemplate>
            <ItemTemplate>
                <myuc:LearningProfileItem HighlightSkills="true" OnItemDeleted="LearningProfileItem_ItemDeleted" runat="server" ShowButtons="true" LearningProfileDataItem='<%#Container.DataItem %>' />
            </ItemTemplate>
            <ItemSeparatorTemplate>
                
            </ItemSeparatorTemplate>
        </asp:ListView>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="SharingCenter.Web.Classes.scDataContext"
            EnableDelete="True" TableName="Sc_LearningProfiles" Where="UserId == @UserId">
            <WhereParameters>
                <asp:ProfileParameter DbType="Guid" Name="UserId" PropertyName="UserId" />
            </WhereParameters>
        </asp:LinqDataSource>
    </div>
    <myuc:MessageBox ID="MessageBox1" MessageType="Generic" runat="server" Text="最多可以创建三条互助活动。" />
    
</asp:Content>
